// pages/main/main.js
var map = require('../../utils/qqmap-wx-jssdk.js');
Page({
  data: {
    uname:wx.getStorageSync('u_name'),
    im:[
      "https://img0.baidu.com/it/u=2170181436,3954770897&fm=253&fmt=auto&app=138&f=PNG?w=664&h=500",
      "https://img0.baidu.com/it/u=1866722253,1034294575&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500"
    ]

  },
  onLoad(){
    console.log("首页页")
    var mapt = new map({
      key:'IAGBZ-GAHWH-IB4DC-WEZGW-3GHMV-A4BCV'
    });
    console.log("denglu")
    //开局调用登录方法拿uid
    wx.getUserProfile({
      desc: '是否授权个人信息',
      success: (ret) => {
        console.log("登录")
        console.log(ret.userInfo)
      }
    })
  }
  
})